-- GENERATED SPELL FOR [Bloodpaw Shaman] --


function spell0_27343(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27343', 30293, 1)
end

function spell1_27343(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(13281,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27343', 2302, 1)
end

function spell2_27343(pUnit, Event) --@Stormstrike,n/a--
pUnit:FullCastSpellOnTarget(51876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27343', 12260, 1)
end

function Sorts_27343(pUnit, Event)
local choix_sorts_27343 = math.random(0, 2)
if choix_sorts_27343 == 0 then
pUnit:RegisterEvent('spell0_27343', 1, 1)
end
if choix_sorts_27343 == 1 then
pUnit:RegisterEvent('spell1_27343', 1, 1)
end
if choix_sorts_27343 == 2 then
pUnit:RegisterEvent('spell2_27343', 1, 1)
end
end

function mob27343_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27343', math.random(1500, 3000), 1)
end

function mob27343_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27343_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27343_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27343, 1, 'mob27343_Action')
RegisterUnitEvent(27343, 2, 'mob27343_Leave')
RegisterUnitEvent(27343, 3, 'mob27343_Kill')
RegisterUnitEvent(27343, 4, 'mob27343_Die')
